import request from "@/framework/utils/request";

// 组织列表
export function organizeList(data) {
  return request({
    url: "/admin/OrganizeController/organizeList",
    method: "post",
    data,
  });
}

// 组织删除
export function organizeDelete(data) {
  return request({
    url: "/admin/OrganizeController/organizeDelete",
    method: "post",
    data,
  });
}

// 组织导入
export function organizeImport(data) {
  return request({
    url: "/admin/OrganizeController/organizeImport",
    method: "post",
    data,
  });
}

// 组织状态
export function organizeStatus(data) {
  return request({
    url: "/admin/OrganizeController/organizeStatus",
    method: "post",
    data,
  });
}

// 组织修改/新增
export function organizeEdit(data) {
  return request({
    url: "/admin/OrganizeController/organizeEdit",
    method: "post",
    data,
  });
}

// 员工列表
export function staffList(data) {
  return request({
    url: "/admin/StaffController/staffList",
    method: "post",
    data,
  });
}

// 员工修改/新增
export function staffEdit(data) {
  return request({
    url: "/admin/StaffController/staffEdit",
    method: "post",
    data,
  });
}

// 客户删除
export function staffDelete(data) {
  return request({
    url: "/admin/StaffController/staffDelete",
    method: "post",
    data,
  });
}

// 员工导入
export function staffImport(data) {
  return request({
    url: "/admin/StaffController/staffImport",
    method: "post",
    data,
  });
}

// 客户列表
export function customerList(data) {
  return request({
    url: "/admin/CustomerController/customerList",
    method: "post",
    data,
  });
}

// 客户修改/新增
export function customerEdit(data) {
  return request({
    url: "/admin/CustomerController/customerEdit",
    method: "post",
    data,
  });
}

// 客户导入
export function customerImport(data) {
  return request({
    url: "/admin/CustomerController/customerImport",
    method: "post",
    data,
  });
}

// 客户删除
export function customerDelete(data) {
  return request({
    url: "/admin/CustomerController/customerDelete",
    method: "post",
    data,
  });
}

// 查找客户
export function searchCustomer(data) {
  return request({
    url: "/admin/CustomerController/searchCustomer",
    method: "post",
    data,
  });
}

// 查找归属
export function searchAscription(data) {
  return request({
    url: "/admin/StaffController/searchAscription",
    method: "post",
    data,
  });
}

export function historyList(data) {
  return request({
    url: "/admin/HistoryController/historyList",
    method: "post",
    data,
  });
}

export function exportHistory(data) {
  return request({
    url: "/admin/HistoryController/exportHistory",
    method: "post",
    data,
  });
}

export function propertyList(data) {
  return request({
    url: "/admin/PropertyController/propertyList",
    method: "post",
    data,
  });
}
export function saveProperty(data) {
  return request({
    url: "/admin/PropertyController/saveProperty",
    method: "post",
    data,
  });
}
export function property(data) {
  return request({
    url: "/admin/PropertyController/property",
    method: "post",
    data,
  });
}

export function saveProRelation(data) {
  return request({
    url: "/admin/PropertyController/saveProRelation",
    method: "post",
    data,
  });
}

export function delProperty(data) {
  return request({
    url: "/admin/PropertyController/delProperty",
    method: "post",
    data,
  });
}
export function importProperty(data) {
  return request({
    url: "/admin/PropertyController/importProperty",
    method: "post",
    data,
  });
}

export function dptmtList(data) {
  return request({
    url: "/admin/OrganizeController/dptmtList",
    method: "post",
    data,
  });
}
export function orgList(data) {
  return request({
    url: "/admin/OrganizeController/orgList",
    method: "post",
    data,
  });
}

export function EditEmailServer(data) {
  return request({
    url: "/admin/StaffController/EditEmailServer",
    method: "post",
    data,
  });
}

export function getEmailServer(data) {
  return request({
    url: "/admin/StaffController/getEmailServer",
    method: "post",
    data,
  });
}




